# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=jetty-runner
pkgver=9.4.15.20190215
_pkgver="${pkgver%.*}.v${pkgver##*.}"
pkgrel=0
pkgdesc="Fast and easy way to run Java web application from the command line."
url="https://www.eclipse.org/jetty"
arch="noarch !mips !mips64"
license="Apache-2.0"
depends="openjdk8-jre-base"
subpackages="$pkgname-openrc"
source="https://repo.maven.apache.org/maven2/org/eclipse/jetty/$pkgname/$_pkgver/$pkgname-$_pkgver.jar
	$pkgname
	$pkgname.initd
	$pkgname.confd
	"

package() {
	cd "$srcdir"

	install -m644 -D "$pkgname-$_pkgver.jar" \
		"$pkgdir/usr/share/java/$pkgname.jar"
	install -m755 -D $pkgname "$pkgdir/usr/bin/$pkgname"

	install -m755 -D $pkgname.initd "$pkgdir/etc/init.d/$pkgname"
	install -m644 -D $pkgname.confd "$pkgdir/etc/conf.d/$pkgname"
}

sha512sums="ae96cc3044e0fbe65e3a65edb13043cd8eb1ed620a9c5f7ede3c6be444f4a4770be5c694395ad7e925664e09aeccc3b413b62795ad9d7668eda3ebbaa91ffdcc  jetty-runner-9.4.15.v20190215.jar
bcf503157b94c7714355e6ff66eb87e7ef9558247b4242d02452d768cd99a6c73bd1f9aad899128fec063f8c68901d98cc41497211eacf075ae10dfe2f28557d  jetty-runner
a2f78a637374fb43ad0ddf58593dd31fd66f997171c54e204638cb00f67365e17346af1763273f1ebd35fca175d0df29907ddcd74745c24d766a329a19e7d4ce  jetty-runner.initd
3e7e52e31f69b54ff81e741ccec8fad5afb5277affb085f6b4f42d643a5609a75e8b6f83fff33c24e41866a42e698de72d687ba5f6cf74825b40ac8c7dda57b3  jetty-runner.confd"
